package com.h117121.fashionshop.core.dom;

import java.util.ArrayList;
import java.util.List;

public class ResultPage {
	@SuppressWarnings("rawtypes")
	public ResultPage() {
		this.currentPage = 0;
		this.numPage = 0;
		this.numItems = 0;
		this.result = new ArrayList();
	}

	private long currentPage;
	private long numPage;
	private long numItems;

	@SuppressWarnings("rawtypes")
	private List result;

	public long getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(long currentPage) {
		this.currentPage = currentPage;
	}

	public long getNumPage() {
		return numPage;
	}

	public void setNumPage(long numPage) {
		this.numPage = numPage;
		if (this.numPage < 1) {
			this.numPage = 1;
		}
	}

	@SuppressWarnings("rawtypes")
	public List getResult() {
		return result;
	}

	@SuppressWarnings("rawtypes")
	public void setResult(List result) {
		this.result = result;
	}

	public long getNumItems() {
		return numItems;
	}

	public void setNumItems(long numItems) {
		this.numItems = numItems;
	}

}
